﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utility
{
    /// <summary>
    /// 食材
    /// </summary>
    public class Ingredient
    {
        /// <summary>
        /// 食材名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 食材数量
        /// </summary>
        public double Amount { get; set; }
        /// <summary>
        /// 食材数量的量纲
        /// </summary>
        public Dimension Dimension { get; set; }

        /// <summary>
        /// 初始化
        /// </summary>
        public Ingredient(string name, double amount, Dimension dimension)
        {
            Name = name;
            Amount = amount;
            Dimension = dimension;
        }
    }
}
